package com.north.light.libmediapreview;

import com.north.light.libmediapreview.ui.base.PreviewBaseParentActivity;

import java.io.Serializable;
import java.util.List;

/**
 * author:li
 * date:2022/9/25
 * desc:预览参数
 */
public class PreviewParams implements Serializable {
    //类型：0图片 1视频
    private int type = 0;

    //预览链接--本地路径or网络地址
    private List<String> previewUrl;

    //预览方向：0竖屏 1横屏
    private int previewOrg;

    //背景色
    private int previewBgResId = R.color.lib_pic_media_preview_B3000000;

    //是否可以点击图片外部取消
    private boolean previewCancelOutSide = true;

    private Class<?> previewClass;

    public Class<?> getPreviewClass() {
        return previewClass;
    }

    public <T extends PreviewBaseParentActivity> void setPreviewClass(Class<T> previewClass) {
        this.previewClass = previewClass;
    }

    public boolean isPreviewCancelOutSide() {
        return previewCancelOutSide;
    }

    public void setPreviewCancelOutSide(boolean previewCancelOutSide) {
        this.previewCancelOutSide = previewCancelOutSide;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<String> getPreviewUrl() {
        return previewUrl;
    }

    public void setPreviewUrl(List<String> previewUrl) {
        this.previewUrl = previewUrl;
    }

    public int getPreviewOrg() {
        return previewOrg;
    }

    public void setPreviewOrg(int previewOrg) {
        this.previewOrg = previewOrg;
    }

    public int getPreviewBgResId() {
        return previewBgResId;
    }

    public void setPreviewBgResId(int previewBgResId) {
        this.previewBgResId = previewBgResId;
    }
}
